package me.spring.cloud.components.starter.business.log.configuration;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author YuanWei
 * @description: TODO
 * @date 2019/3/29 14:32
 */
@Configuration
public class BusQueueConfiguration {

    private static final String BUSINESS_LOG_QUEUE = "business_log_queue";

    /**
     * @Description: 操作api业务日志队列
     * @return
     */
    @Bean(name = BUSINESS_LOG_QUEUE)
    Queue businessLogQueue(){
        return new Queue(BUSINESS_LOG_QUEUE, true);
    }
}
